package com.bobi.tfca.ui.mainnavigation.home.activity

import android.annotation.SuppressLint
import android.os.Bundle
import androidx.lifecycle.ViewModel
import com.bobi.tfca.base.BaseFragment
import com.bobi.tfca.databinding.FragmentOrgActConditionBinding
import com.bobi.tfca.databinding.FragmentShowActConditionBinding

class ShowActConditionFragment : BaseFragment<FragmentShowActConditionBinding, ViewModel>(
    FragmentShowActConditionBinding::inflate,
    null,
    true
) {

    @SuppressLint("ResourceType", "UseRequireInsteadOfGet")
    override fun initFragment(
        binding: FragmentShowActConditionBinding,
        viewModel: ViewModel?,
        savedInstanceState: Bundle?
    ) {
        publicViewModel!!.activity.observe(viewLifecycleOwner) {
            binding.tvCondition.text = it.signCondition
        }
    }
}